package com.balabala.gym_consume.constant;

import cn.hutool.core.date.DateUnit;

/**
 * @Author 何涛
 * @Date: 2023/05/08/ 11:35
 * @description
 */
public class OrderConstant {
    public final static String PREFIX_ORDER_TOKEN="order:token:";
    public final static Integer YUAN_UNIT=100;
    public static class OrderStatus{
        //订单状态：
        //101->待付款；
        //102->用户取消；
        //103->系统取消；
        //201->已付款；
        //202->申请退款；
        //203->已退款；
        //301->待发货；
        //401->已发货；
        //501->用户收货；
        //502->系统收货；
        //901->已完成；
        public final static Integer WAIT_PAYMENT_STATUS=101;
        public final static Integer USER_CANCEL_STATUS=102;
        public final static Integer SYSTEM_CANCEL_STATUS=103;
        public final static Integer PAY_STATUS=201;
        public final static Integer WAIT_REFUND_STATUS=202;
        public final static Integer REFUND_STATUS=203;
        public final static Integer WAIT_SHIPMENTS_STATUS=301;
        public final static Integer SHIPMENTS_STATUS=401;
        public final static Integer SYSTEM_RECEIVER_STATUS=502;
        public final static Integer ORDER_OVER_STATUS=901;
    }
    public static class OrderSourceType{
        //订单来源【0 pc端订单 1 app订单】
        public final static Integer COURSE_SOURCE_TYPE=2;
        public final static Integer INTEGRAL_SOURCE_TYPE=1;
        public final static Integer SHOP_SOURCE_TYPE=0;
    }
    public static class OrderDeliverStatus{
        public final static Integer WAIT_SEND=0;
        public final static Integer SENDING=1;
        public final static Integer RECEIVED=2;
    }
    public static class OrderQueryCategoryConstant{

        public final static Integer SHOP=1;
        public final static Integer INTEGRAL=2;
        public final static Integer COURSE=3;
    }
    public static final Long TIMEOUT= DateUnit.DAY.getMillis();
}
